package com.caiyouxi.system.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.system.model.SysProductLine;
import com.caiyouxi.system.service.SysProductLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sys_product_line")
public class SysProductLineController {
    @Autowired
    private SysProductLineService service;
    @RequestMapping("get_info")
    public ResData get_info(@RequestBody SysProductLine line){
        return service.get_info(line);
    }

    @RequestMapping("delete")
    public ResData delete(@RequestBody SysProductLine line){
        return service.delete(line);
    }

    @RequestMapping("add")
    public ResData add(@RequestBody SysProductLine line){
        return service.add(line);
    }

    @RequestMapping("update")
    public ResData update(@RequestBody SysProductLine line){
        return service.update(line);
    }

    @RequestMapping("get_all")
    public ResData get_all(@RequestBody  SysProductLine line){
        return  service.get_list(line);
    }
}
